package com.xhc.business.controller.admin;

import com.xhc.server.domain.Sms;
import com.xhc.server.dto.SmsDto;
import com.xhc.server.dto.PageDto;
import com.xhc.server.dto.ResponseDto;
import com.xhc.server.service.SmsService;
import com.xhc.server.util.ValidatorUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @version 1.0
 * @Author: XHC
 * @Date: 2023-12-19-17:58
 * @Description: 吃番茄不吃番茄酱
 * @注释:
 */
@RestController
@RequestMapping("/admin/sms")
public class SmsController {

//    private static final Logger LOG = LoggerFactory.getLogger(SmsController.class);
    public static final String BUSINESS_NAME = "短信验证码";

    @Resource
    private SmsService smsService;

    /**
     * 列表【查询】
     * @param pageDto
     * @return
     */
    @RequestMapping("/list")
    public ResponseDto list(@RequestBody PageDto pageDto){
        ResponseDto responseDto = new ResponseDto();
        smsService.list(pageDto);
        responseDto.setContent(pageDto);
         return responseDto;
    }


}
